feat(aws): add Orthodox Channel public S3 website origin - #49
Merged
Conversation
Contributor
OpenTofu TestOpenTofu test passed. View run output |
Contributor
OpenTofu PlanOpenTofu plan passed. View run outputOpenTofu will perform the following actions:
# aws_iam_role_policy.github_actions_channel_project_site_public_origin will be created
+ resource "aws_iam_role_policy" "github_actions_channel_project_site_public_origin" {
+ id = (known after apply)
+ name = "channel-project-site-public-origin"
+ name_prefix = (known after apply)
+ policy = (known after apply)
+ role = "github-actions-channel-project-site-deploy"
}
# aws_s3_bucket.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket" "web" {
+ acceleration_status = (known after apply)
+ acl = (known after apply)
+ arn = (known after apply)
+ bucket = "orthodox.channel"
+ bucket_domain_name = (known after apply)
+ bucket_namespace = (known after apply)
+ bucket_prefix = (known after apply)
+ bucket_region = (known after apply)
+ bucket_regional_domain_name = (known after apply)
+ force_destroy = false
+ hosted_zone_id = (known after apply)
+ id = (known after apply)
+ object_lock_enabled = (known after apply)
+ policy = (known after apply)
+ region = "us-west-2"
+ request_payer = (known after apply)
+ tags = {
+ "ManagedBy" = "Terraform"
}
+ tags_all = {
+ "ManagedBy" = "Terraform"
}
+ website_domain = (known after apply)
+ website_endpoint = (known after apply)
+ cors_rule (known after apply)
+ grant (known after apply)
+ lifecycle_rule (known after apply)
+ logging (known after apply)
+ object_lock_configuration (known after apply)
+ replication_configuration (known after apply)
+ server_side_encryption_configuration (known after apply)
+ versioning (known after apply)
+ website (known after apply)
}
# aws_s3_bucket_policy.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket_policy" "web" {
+ bucket = "orthodox.channel"
+ id = (known after apply)
+ policy = (known after apply)
+ region = "us-west-2"
}
# aws_s3_bucket_public_access_block.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket_public_access_block" "web" {
+ block_public_acls = false
+ block_public_policy = false
+ bucket = "orthodox.channel"
+ id = (known after apply)
+ ignore_public_acls = false
+ region = "us-west-2"
+ restrict_public_buckets = false
}
# aws_s3_bucket_website_configuration.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket_website_configuration" "web" {
+ bucket = "orthodox.channel"
+ id = (known after apply)
+ region = "us-west-2"
+ routing_rules = (known after apply)
+ website_domain = (known after apply)
+ website_endpoint = (known after apply)
+ index_document {
+ suffix = "index.html"
}
+ routing_rule (known after apply)
}
Plan: 5 to add, 0 to change, 0 to destroy.
OpenTofu will perform the following actions:
# aws_iam_role_policy.github_actions_channel_project_site_public_origin will be created
+ resource "aws_iam_role_policy" "github_actions_channel_project_site_public_origin" {
+ id = (known after apply)
+ name = "channel-project-site-public-origin"
+ name_prefix = (known after apply)
+ policy = (known after apply)
+ role = "github-actions-channel-project-site-deploy"
}
# aws_s3_bucket.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket" "web" {
+ acceleration_status = (known after apply)
+ acl = (known after apply)
+ arn = (known after apply)
+ bucket = "orthodox.channel"
+ bucket_domain_name = (known after apply)
+ bucket_namespace = (known after apply)
+ bucket_prefix = (known after apply)
+ bucket_region = (known after apply)
+ bucket_regional_domain_name = (known after apply)
+ force_destroy = false
+ hosted_zone_id = (known after apply)
+ id = (known after apply)
+ object_lock_enabled = (known after apply)
+ policy = (known after apply)
+ region = "us-west-2"
+ request_payer = (known after apply)
+ tags = {
+ "ManagedBy" = "Terraform"
}
+ tags_all = {
+ "ManagedBy" = "Terraform"
}
+ website_domain = (known after apply)
+ website_endpoint = (known after apply)
+ cors_rule (known after apply)
+ grant (known after apply)
+ lifecycle_rule (known after apply)
+ logging (known after apply)
+ object_lock_configuration (known after apply)
+ replication_configuration (known after apply)
+ server_side_encryption_configuration (known after apply)
+ versioning (known after apply)
+ website (known after apply)
}
# aws_s3_bucket_policy.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket_policy" "web" {
+ bucket = "orthodox.channel"
+ id = (known after apply)
+ policy = (known after apply)
+ region = "us-west-2"
}
# aws_s3_bucket_public_access_block.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket_public_access_block" "web" {
+ block_public_acls = false
+ block_public_policy = false
+ bucket = "orthodox.channel"
+ id = (known after apply)
+ ignore_public_acls = false
+ region = "us-west-2"
+ restrict_public_buckets = false
}
# aws_s3_bucket_website_configuration.web["orthodox.channel"] will be created
+ resource "aws_s3_bucket_website_configuration" "web" {
+ bucket = "orthodox.channel"
+ id = (known after apply)
+ region = "us-west-2"
+ routing_rules = (known after apply)
+ website_domain = (known after apply)
+ website_endpoint = (known after apply)
+ index_document {
+ suffix = "index.html"
}
+ routing_rule (known after apply)
}
Plan: 5 to add, 0 to change, 0 to destroy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
orthodox.channelto the centrals3_web_bucketsclass, which owns the intentional public-read policy and S3 website configuration.channel-projectsite-deployment role the minimum bucket/object actions needed to publish the static artifact.No linked issue.
Type of change
Validation
6d50e6c5985d25289b6b801bbc507bb9b875d818.terraform-docsREADME inventory update.orthodox.channelreturned S3HeadBucketHTTP 404 immediately before authorship; the globally unique name was available at that time, but create-time availability remains AWS-authoritative.s3_web_bucketspublic-website class, the channel deployment role, and the publicmakeitwork.cloudS3/Cloudflare delivery reference.Impact and rollout
channel-projectdual-publish workflow will synchronize its built static artifact after this root's main apply succeeds.Safety and secrets
orthodox.channelweb-origin bucket through the existing central public-web bucket class. It is intentional and does not relax protections on the private OAC bucket.AI assistance materially produced this change; reviewers should verify the bucket class membership, IAM resource scope, cross-repository ordering, and absence of changes to the private origin.